if __name__ == '__main__':
    v = int(input())
    t = int(input())
    re = 13.12+0.6215*t-11.37*(v**0.16)+0.3965*t*(v**0.16)
    print(f"{round(re)}")